package com.mbbb.yygh.hosp.repository;

import com.mbbb.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    //根据医院编号和科室编号查询科室信息是否已经添加
    Department findByHoscodeAndDepcode(String hoscode, String depcode);

    //删除科室
    void deleteDeptById(String id);
}
